public function countEntitiesFromRelationship($relationship, $inverse_relationship = false)
{
return elgg_get_entities_from_relationship(array('relationship' => $relationship, 'relationship_guid' => $this->getGUID(), 'inverse_relationship' => $inverse_relationship, 'count' => true));
}