Changed getCount to a non hard-coded value