Corrected deprecation counting