Counting: fixed build