title: Determine Number of Elements in a FloatBuffer
body: <p><code>FloatBuffer</code> has the method <code>capacity()</code> which tells us the maximum capacity of the <code>FloatBuffer</code>. However, it does not tell us how many elements are in that buffer. So how can I determine the number of elements in a <code>FloatBuffer</code>? I am trying to determine if my <code>FloatBuffer</code> is full or partially full.</p>