+ // hack to make getcount work. - not sure the best approach here
+ // as creating an alternate getcount function also feels a bit hacky
+ if(isset($params['options']) && isset($params['options']['is_count'])) {
+ return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params);
+ }