In 2018, there were 564,589 planes in the world. This includes civil planes, commercial planes, and military planes. This excludes drones.
If you want to know more, please go here. This data was sourced from the book Transportation and the Belt and Road Initiative, in which more data as well as the original primary sources of the data are available.