values::size() member function added.

The main motivation behind this change is allowing both values and row to be used interchangeably inside a generic code. Knowing how many values you already set is also a good side effect.

I decided to test the changes using the already available code.
Please let me know if this is not approach for this case.

Regards,
Ricardo