update _get_count
* remove deprecated version
* more efficient now