/** * Get a count of records with the given property * * @param $params * @return int */ public static function getRecordCount($params) { $dao = new CRM_HRJob_DAO_HRJob(); $dao->copyValues($params); return $dao->count(); }