read $_ a for x in $a;{((b+=c[x]++&1))} echo $b