`len` works on the return value from `keys` in both py2 and py3. (Though here i guess just `len(fields)` would also work...)