How to identify number of atoms in a structure using pymatgen?

How to identify number of atoms in a structure using pymatgen? What is the property name?

Since the Structure object is implemented as an iterable sequence of Site objects, I expect you can just use len(list(my_structure)) to find the number of atoms in my_structure.

The attribute is called num_sites

I used this @Nicholas_Winner but I got None