def positionCounter(df):
    """Adds a column to the row in the dataframe indicating the number of characters that are in the position specified in the policy"""
    pos1 = int(str(df[0]))
    pos2 = int(str(df[1]))
    char =  str(df[2]).replace(":", "")
    password = str(df[3])
    positionalCharCount = 0
    if password[pos1-1] == char:
        positionalCharCount += 1
    if password[pos2-1] == char:
        positionalCharCount += 1
    df[5] = positionalCharCount

    return df