Use if let syntax for Dictionary {group, count}by

This uses the same idiomatic if let syntax for the Dictionary
versions of groupBy and countBy, as well as removing a few
unnecessary semi-colons.