Adding missing_counts and error_counts methods to the API