__len__ should return an int value.