final public function getObjectsListCount($objectType, $properties = array(), $objectURI = NULL, $objectId = NULL)
    {
        if (empty($properties)):
            if (!empty($this->propertyModel))
                $properties = array_keys($this->propertyModel);
        endif;
        $query = $this->getObjectCountQuery($properties, "?{$this->valueGroup}property_values", $objectId, $objectType, $objectURI);
        //echo($this->withConditions) ;
        $query .= "\nGROUP BY o.object_id";
        $query .= $this->getListLookUpConditionsClause();
        $query .= $this->getListOrderByStatement();
        $cquery = "SELECT COUNT(total_objects) as count FROM ($query) AS total_entities";
        $results = $this->database->prepare($cquery)->execute();
        $count = 0;
        while ($row = $results->fetchAssoc()) {
            $count = $row['count'];
        }
        return $count;
    }