Count all values for a property of a resource
string $resource The URI of the resource (e.g. http://example.com/joe#me):
string $property The name of the property (e.g. foaf:name):
string $type The type of value to filter by (e.g. literal):
string $lang The language to filter by (e.g. en):
integer The number of values for this property
public function count($resource, $property, $type = null, $lang = null) {
return count($this
->all($resource, $property, $type, $lang));
}