Is there a way to count all of the nodes in a chart?

I have a chart I made with G-d only knows how many nodes it has and I want to be able to have an accurate count at all times. Is there some sort of AppleScript I can run or, preferably, a built in feature to OmniGraffle which will report how many nodes the chart has?