Added record count, changed parser to take max_entries.