I don't know of a script to do this, but if your tiles are faces or groups / component instances with an applied material, then there is a built-in way.
Select one with that material.
Right click and in the context-menu choose 'Select' and 'All with Same Material'.
Right click again and in the context-menu choose 'Entity Info'.
The dialog that opens will report the number of things now selected with that material.
If the objects are faces it also reports their area in current units.
If the things are 'instances' it will only report their number.
If the tiles are instances of a component with the material applied 'internally', then you can count the number of them in the model this way...
Open the Component Browser and click the Model-tab [small-house] and right-click over the tile component you want.
In the context-menu choose 'Select Instances'.
All instances of that component are now selected.
'Entity Info' will again give the count of those tiles now selected.
[Of course this might all be different wording in your 'locale' version]
I'm guessing you are Spanish? Don't worry, your English is quite good...
Merry Christmas