4,164 questions
4,377 answers
5,729 comments
There are many ways, but the blocks field of getinfo is probably the easiest place to start.