code: def count(self):
          
          actions = self._actionGroup.actions()
          if len(actions) == 1 and actions[0].objectName() == 'place_holder':
              return 0
          
          return len(actions)
docs: Returns the number of actions associated with this button.
          
          :return     <int>