Hi, @Luis Olias ,
For counting all the files, you can check the SharePoint Online admin center. Navigate through Sites>Active sites, Admins will be able to view the basic statistics of all the sites in the tenant. And you can export the report as a csv file.
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.