Wrote getCount