compute_count: drop unused factor levels. Fixes #201