I bought a lot of books, you know.

Literal

Book [object-を] lots bought-[explanation-んだ].

たくさん ('many, a lot') is a common quantity adverb modifying 買う. ~んだ provides explanatory framing ('you see, I bought a lot'), common when reporting on what one has done in response to an implicit question or observation.