This complete list is called the canon of Scripture. It includes 46 books for the Old Testament (45 if we count Jeremiah and Lamentations as one) and 27 for the New. 91

Catechism number 121

The Old Testament is an indispensable part of Sacred Scripture. Its books are divinely inspired and retain a permanent value,92 for the Old Covenant has never been revoked.

Official source ↗