There are 30 dynasties (31 if you include Cleopatra, who ended the dynastic system) in ancient Egypt containing about 332 known Pharaohs. This number is a rough estimate as there may be Pharaohs that have not been discovered, and some scholars do not agree on whether or not advisors that served during occasional lapses between Pharaohs should count. The term Pharaoh did not originate in Egypt and was not consistently used until the 12th dynasty.