4,177 questions
4,389 answers
5,755 comments
There are many ways, but the blocks field of getinfo is probably the easiest place to start.