There is no definitive answer to this question since it depends on the definition of "element." However, a wide variety of substances are considered elements under various definitions, so it is likely that there are an infinite number of elements.