Adds a __len__ method to ObjectWrap