Just some nasty prefetching code
store the counts in an RDF model