The Old Testament
There are 39 books in the Old Testament separated into 4 divisions.
The Pentateuch, traditionally designated as the 5 books of Moses.
Historical Books, number 12, from Joshua to Esther.
Poetical Books, number 4, from Job to Song of Solomon.
Prophetical Books, including the writings of the 4 Major Prophets, from Isiah to Daniel, and the 12 Minor Prophets from Hosea to Malachi.
The New Testament
There are 27 books in the New Testament, separated into 4 divisions:
The Gospels
Historical Books
Doctrinal Books
Prophetical Book