Text stats

This branch builds on `icons-rebased` (see other pull request).