If record/count pairing were a struct, this could return a record/count pairing * instead of taking two pointer arguments.