awk '{ arr[length($1)]++; arr[length($2)]++; } END {print "8 - 9 bytes", arr[8]+arr[9], " 10 bytes ", arr[10] } ' file