counter with algorithm based on an analogy of how a bucket with a constant leak will overflow if either the average rate at which water is poured in exceeds the rate at which the bucket leaks or if more water than the capacity of the bucket is poured in all at once, loendur algoritmiga, mis põhineb analoogial selle kohta, kuidas pideva lekkega ämber voolab üle, kui keskmine kiirus, millega vett valatakse, ületab ämbri lekkimise kiirust või kui ämbri maht valatakse korraga kokku