I just programmed a small Windows utility in a couple of mornings (in spanish language), basically dealing with the counting of pieces.

With it we can go clicking on the pieces that are coming out on the board (left click subtract, right click sum, in case we make mistakes) and know at any time what are left, in addition to the probability that they come out, written on top of each.

The application allows you to save the status for games with turns, with F5, and load it with F7, andrestart, of course.

I leave a video showing its simple but practical utility, especially to learn how to memorize the number of pieces.