What is the atomic number of O?

Is it $8$?
How did I know that $Z = 8$? Do I have the atomic numbers memorized?