<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def dbus_lenFD(self, fd):
 """ Returns the byte count after reading till EOF. """

        f = os.fdopen(fd, 'rb')
        result = len(f.read())
        f.close()
        return result