I have read about what may or may not be a hypothetical example of a shepherd who "counts" his flock by matching sheep passing through a gate with stones put into or taken out of a bag. This is enough to let you know when the number of sheep is wrong, though you won't know what the number is.