example of outputing the json returned by a function
code to count the number of occurances of a path between classes in an RDF Graph