counting beans