Make block count on stats page configurable

Fixes #549
Merge pull request #573 from TheSerapher/issue-549

Make block count on stats page configurable