To calculate how many correct data records have been extracted you need to have a reference set of correct data records. The set of reference data is what you will compare your output to, the reference set is the ideal output your output should match. The reference set is also called a "gold standard" set.
The reference set may be created by hand or, if better IR systems exist for your purpose, may be made by another system.
To calculate number of correct data records extracted all you do is simply count how many records are in both your system output and the gold standard output.