Wraps a function to limit the amount of times it can be called, then calls the a notifier function once that limit has been reached.