@staticmethod
def _qargs_int(key, values, default):
    """Return the query arg value as an integer for the specified key or
        return the specified default value.

        :param str key: The key to return the value for
        :param dict values: The query value dict returned by urlparse
        :param int default: The default return value
        :rtype: int

        """
    return int(values.get(key, [default])[0])
