Refector: clean up code.
Display note count on network graph.
Merge pull request #3369 from hiroponz/display-note-count

Display note count on network graph.