count fixes

- _set_where not needed as it is passed to _count
- in _count its better to use library count then fetching all results and counting them