engine.Len returns the number of keys in an env