Added support for getCount method