select length(a),count(a) from x group by length(a)