[FEATURE,DOC,TEST] Extending Gaps interface for counting.

Fixes #495