Counting of triples in query results implemented