Calculates the number of triples in the graph
integer The number of triples in the graph.
public function countTriples() {
$count = 0;
foreach ($this->index as $resource) {
foreach ($resource as $property => $values) {
$count += count($values);
}
}
return $count;
}