GetPMRecordCount

For internal use.