4,147 questions
4,360 answers
5,713 comments
There are many ways, but the blocks field of getinfo is probably the easiest place to start.