The equation n= m/mr That will give you the number of moles. To then get the number of atoms/molecules, multiply by avogadro's number. This is 6.022*10^23.
I wonder if it would get accepted by the teacher. But you are perfectly right.
The whole concept of moles were first created to simplify Avogadro's number, this question is a prime example of why moles are much easier to write and use than just writing the amount of atoms.