How Many People Wrote the Bible?

There were 40 authors for the bible. However, these 40 authors did not write from their own wisdom. It was through the holy spirit of God, which I think is pretty neat.