Add box counter

Toward #118