driver-legacy/src/main/com/mongodb/DBCursor.java
public int size() {
        DBCollectionCountOptions countOptions = getDbCollectionCountOptions().skip(findOptions.getSkip()).limit(findOptions.getLimit());
        return (int) collection.getCount(getQuery(), countOptions);
    }
public int size() {
        DBCollectionCountOptions countOptions = getDbCollectionCountOptions().skip(findOptions.getSkip()).limit(findOptions.getLimit());
        return (int) collection.getCount(getQuery(), countOptions);
    }
public int size ( ) { DBCollectionCountOptions countOptions = getDbCollectionCountOptions ( ) . skip ( findOptions . getSkip ( ) ) . limit ( findOptions . getLimit ( ) ) ; return ( int ) collection . getCount ( getQuery ( ) , countOptions ) ; }
Counts the number of objects matching the query this does take limit/skip into consideration

@return the number of objects
@throws MongoException if the operation failed
@see #count()
Counts the number of objects matching the query this does take limit / skip into consideration