Implemented method getCount()