Passage: Early medieval alchemists built upon the work of Zosimos in the Byzantine Empire and the Arab empires. Byzantine and Arab alchemists were fascinated by the concept of metal transmutation and attempted to carry out the process. The 8th-century Muslim alchemist Jabir ibn Hayyan (Latinized as Geber) analyzed each classical element in terms of the four basic qualities. Fire was both hot and dry, earth cold and dry, water cold and moist, and air hot and moist. He theorized that every metal was a combination of these four principles, two of them interior and two exterior. From this premise, it was reasoned that the transmutation of one metal into another could be affected by the rearrangement of its basic qualities. This change would be mediated by a substance, which came to be called xerion in Greek and al-iksir in Arabic (from which the word elixir is derived). It was often considered to exist as a dry red powder (also known as al-kibrit al-ahmar, red sulfur) made from a legendary stone—the philosopher's stone. The elixir powder came to be regarded as a crucial component of transmutation by later Arab alchemists.In the 11th century, there was a debate among Muslim world chemists on whether the transmutation of substances was possible. A leading opponent was the Persian polymath Avicenna (Ibn Sina), who discredited the theory of transmutation of substances, stating, "Those of the chemical craft know well that no change can be effected in the different species of substances, though they can produce the appearance of such change."According to legend, the 13th-century scientist and philosopher Albertus Magnus is said to have discovered the philosopher's stone. Magnus does not confirm he discovered the stone in his writings, but he did record that he witnessed the creation of gold by "transmutation".

Question: How many qualities did Jabir ibn Hayyan use to analyze each classical element?
four