Refector: clean up code.
Display note count on network graph.