Added word counter

also a sort after grid.Solve