Notes counts was off, it was counting all revisions. Also cleaned up the code a bit there.
Notes counts was off, it was counting all revisions. Also cleaned up the code a bit there.

georgehristov/EPESI,georgehristov/EPESI