Added support for the __len__ magicmethod (len(x))