rename count to max_count