changed return type of getCount()