4,159 questions
4,372 answers
5,719 comments
There are many ways, but the blocks field of getinfo is probably the easiest place to start.