4,156 questions
4,369 answers
5,718 comments
There are many ways, but the blocks field of getinfo is probably the easiest place to start.