Gets the amount of memory blocks that this buffer has.
This amount is never larger than what buffer_get_max_memory returns.
a Buffer.
the number of memory blocks this buffer is made of.