Implemented counting of boxes
fixup! First iteration with simple jQuery implementation