6.5. Record counting operation

To count the records in a range with source and range, run these steps:

  1. Let count be the number of records, if any, in source’s list of records with key in range.

  2. Return count.