Return number of buffer entries on write to buffer