Configurable comment counts

This changeset necessarily depends on changeset #24, and thus includes it. If you apply this one first, then #24 should be obsolete. Otherwise, there might be conflict.