Countable:
* When referring to a specific group or collection of things: "We baked three batches of cookies." (Each batch is a separate, identifiable group.)
Uncountable:
* When referring to a general quantity or amount: "The new software needs a batch update." (Here, "batch" refers to a general update, not a specific group.)
It's important to consider the context to determine which type of noun "batch" is functioning as.