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