Protected method to get the number of reverse properties for a resource If a resource only has a single property, the number of values for that property is returned instead. @ignore
protected function reversePropertyCount($resource) {
$properties = $resource
->reversePropertyUris();
$count = count($properties);
if ($count == 1) {
$property = $properties[0];
return $resource
->count("^<{$property}>");
}
else {
return $count;
}
}