@Deprecated
    public long getCount(@Nullable final DBObject query, @Nullable final DBObject projection, final ReadPreference readPreference) {
        return getCount(query, projection, 0, 0, readPreference);
    }
@Deprecated
    public long getCount(@Nullable final DBObject query, @Nullable final DBObject projection, final ReadPreference readPreference) {
        return getCount(query, projection, 0, 0, readPreference);
    }
@ Deprecated public long getCount ( @ Nullable final DBObject query , @ Nullable final DBObject projection , final ReadPreference readPreference ) { return getCount ( query , projection , 0 , 0 , readPreference ) ; }
Get the count of documents in collection that would match a criteria.

@param query          specifies the selection criteria
@param projection     this is ignored
@param readPreference {@link ReadPreference} to be used for this operation
@return the number of documents that matches selection criteria
@throws MongoException if the operation failed
@mongodb.driver.manual reference/command/count/ Count
@deprecated Prefer {@link #count(DBObject, DBCollectionCountOptions)}
Get the count of documents in collection that would match a criteria .