Return number of buffer entries when writing

For FIFO and RING buffers, return the current number of buffer
entries after adding the newly written element to the buffer.

For LIFO buffers the count cannot be safely determined in the
face of concurrency so just return 'true' (as before) that the
element was written to the buffer.