Binary counters and boxes