ComfyUI-SimpleCounter Introduction
ComfyUI-SimpleCounter adds a Simple Counter node to ComfyUI. It helps you keep track of repeated steps in a queued batch, especially when you are working through images one at a time. You can find the node under utils → Simple Counter.
The author suggests using it alongside Load Image Batch from WAS Node Suite. For example, if a workflow processes a batch of images sequentially, the counter gives you a value that advances as the batch runs. Pressing Queue Prompt resets the count for a new run.
How ComfyUI-SimpleCounter Works
Think of the node as a tally that starts at a number you choose:
- Set start to the value you want the count to begin from.
- Queue a prompt. The count resets for that run.
- As the batch executes, the count increases from the start value.
For an illustrated example of the batch setup, see the sample workflow image.
The counter’s behavior runs on the JavaScript side of ComfyUI; its Python component defines the node. This lets the node respond to Queue Prompt and reset the count when you begin another run.
ComfyUI-SimpleCounter Features
- A configurable starting value. Use start to choose where counting begins. This is useful when your workflow needs a particular initial number rather than starting at zero.
- Counting during batch execution. The value increases while the batch runs, helping a sequential-image workflow follow its progress through repeated steps.
- Reset when you queue a prompt. You do not need to carry the previous run’s final count into the next one; pressing Queue Prompt starts the count over.
- A node for image-by-image workflows. The author recommends pairing the counter with batch settings and a sequential loader such as WAS Node Suite’s Load Image Batch.
Troubleshooting ComfyUI-SimpleCounter
I cannot find the node. Look in the utils category for Simple Counter.
The count starts at an unexpected number. Check the node’s start setting. Counting begins from the value set there.
The count reset when I ran my workflow again. This is expected: pressing Queue Prompt resets the counter for the new run.
The count is not changing as I expected. Check that your workflow is executing a batch, since the described count-up behavior occurs during batch execution. Compare your setup with the sample workflow image, particularly if you are using a sequential image loader.
Learn More about ComfyUI-SimpleCounter
- Sample workflow image: shows how the author uses the counter with batch settings.
- WAS Node Suite: includes Load Image Batch, which the author recommends using with the counter.
The author permits redistribution and modification of ComfyUI-SimpleCounter.
