public function getObjectCount($condition = null, $groupBy = null, $objectClass = null)
{
$params = $this->fillParms($condition, null, null, null, null, $groupBy, $objectClass);
$response = (array) $this->doRequest($this->buildEndpointUrl("object-count") . $params, "GET");
if (!$response || !$response["success"]) {
throw new Exception("Could not retrieve object count");
}
return $response["data"]->totalCount;
}