getlength function

Get the length for a iterator