Rework api_calls_num using API statistics and enable it again