fixing getCount