def counter_count_odd(counter):
    """count number of odd numbered items

    Could be used for example to cound odd numbered prime factors
    which prevent the number to be a perfect square."""
    oddn = 0
    for item in counter:
        if counter[item] % 2:
            oddn += 1
    return oddn