Add method getCount