4,173 questions
4,386 answers
5,745 comments
There are many ways, but the blocks field of getinfo is probably the easiest place to start.