def _validate_positive_int(value):
    """Validate value is a natural number."""
    try:
        value = int(value)
    except ValueError:
        raise ValueError('Could not convert to int')
    if value > 0:
        return value
    else:
        raise ValueError('Only positive values are valid')
