driver-legacy/src/main/com/mongodb/DBCollection.java
@Deprecated
    public long getCount(@Nullable final DBObject query, @Nullable final DBObject projection, final long limit, final long skip) {
        return getCount(query, projection, limit, skip, getReadPreference());
    }
@Deprecated
    public long getCount(@Nullable final DBObject query, @Nullable final DBObject projection, final long limit, final long skip) {
        return getCount(query, projection, limit, skip, getReadPreference());
    }
Get the count of documents in collection that would match a criteria.

@param query      specifies the selection criteria
@param projection this is ignored
@param limit      limit the count to this value
@param skip       number of documents to skip
@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)}