Updated GetRecordCount procedure and test project