Counting segment types
======================

In preparation.

