def count(s): reduce s as $i (0; . + 1);