I want to downloads the counts of hugging face models

Please point me to your api or python code which download the model stats. Example: How many times was BERT downloaded month-over-month for last 3 years?

Will this code help?