Just drop stack of items and set number to zero. Then you can use this item and counter will be incremented negative (for example travel rations). Don't check them == 0. Check stacks numbers for <= 0.
OH, good catch! I'll fix that in the next update.