added count based on mongodb command
added hybrid approach to count, if no snapshot has been done, use the collection.count