<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getTotalAssociations(self, wifiInterfaceId=1, timeout=1):
 """Execute GetTotalAssociations action to get the amount of associated Wifi clients. :param int wifiInterfaceId: the id of the Wifi interface :param float timeout: the timeout to wait for the action to be executed :return: the amount of Wifi clients :rtype: int .. seealso:: :meth:`~simpletr64.actions.Wifi.getGenericAssociatedDeviceInfo` """

        namespace = Wifi.getServiceType("getTotalAssociations") + str(wifiInterfaceId)
        uri = self.getControlURL(namespace)

        results = self.execute(uri, namespace, "GetTotalAssociations", timeout=timeout)

        return int(results["NewTotalAssociations"])