An implementation of the Leaky Bucket algorithm.