Count number of facts in a snapshot app

This was something i wrote when debugging snapshot mr, not sure if its useful enough to add