Allow count to take string args

Did you have a specific reason for allow ints only as counter keys?  This change would allow strings, when they are prefixed by $, e.g. count $hello. I've tested this change against both old and new count args.