title: How can I get the number of nodes of a Neo4j graph database from Python?
body: <p>I'm trying to get the number of nodes of a Neo4j graph database using Python, but I don't find any method or property to do that.</p>
  
  <p>Does anybody how can I get this information?</p>
  
  <p>Other Python packages like NetworkX has a method to get this information.</p>
  
  <pre><code>&gt;&gt;&gt; G = nx.Graph()   # or DiGraph, MultiGraph, MultiDiGraph, etc
  &gt;&gt;&gt; G.add_path([0,1,2])
  &gt;&gt;&gt; len(G)
  3
  </code></pre>