Add a maximum deprecation callCount

This is a speed optimization. If a deprecation is called MANY times
it slows down the entire application, so a maximum call count is set.