Make block count on stats page configurable

Fixes #549