How to get number of free blocks?

Original text of this message