getCount() changed to count()