corrected getCount