def _get_live_action_retry_count(self, live_action_db):
        """
        Retrieve current retry count for the provided live action.

        :rtype: ``int``
        """
        # TODO: Ideally we would store retry_count in zookeeper or similar and use locking so we
        # can run multiple instances of st2notififer
        context = getattr(live_action_db, "context", {})
        retry_count = context.get("policies", {}).get("retry", {}).get("retry_count", 0)

        return retry_count

        Retrieve current retry count for the provided live action.

        :rtype: ``int``
        
st2actions/st2actions/policies/retry.py