rename getCount to getTotalCount