title: How to get total number of db-hits from Cypher query within a Java code?
body: <p>I am trying to get total number of db-hits from my Cypher query. For some reason I always get 0 when calling this:</p>
  
  <pre><code>String query = "PROFILE MATCH (a)-[r]-(b)-[p]-(c)-[q]-(a) RETURN a,b,c";
  Result result = database.execute(query);
  while (result.hasNext()) {
      result.next();
  }
  System.out.println(result.getExecutionPlanDescription().getProfilerStatistics().getDbHits());
  </code></pre>
  
  <p>The database seems to be ok. Is there something wrong about the way of reaching such value?</p>