Get Count only in Python API?

Hello,
I want to know how many files I have in the router
so I want to run

:put [file print count-only ]

but how do I do it in python - “routeros_api”?

 replay = api.get_resource('/file/')

I don’t want it to read all the file and names - just the final number

Thanks,