Hello Anu - I believe you are extracting from a database (Oracle / My SQL / any other source). Please check the source SQL that you are using to fetch the record. Sometime it is recommended to extract from a view and not from table. In view you can control the SQL where clause and number of records. Need some more detail to analyse the requirement.
NumberofRecords is always provide the correct number.