Add number to counter

Hi all, I have created a counter for my dishwasher tablets and I would like to know if it is possible to add to that counter a specific number (of tablets), ideally what I would like to achieve is a “button” that when is pressed a “window” would pop up asking me how many tablets I want to add to my dishwasher tablets counter…is something like that even possible?