Question 4 

$ perl -n -E 'say foreach /(.)/g' path.txt | \
      sort | uniq -c

  54310 *
 131328 E
 130816 N
 131327 S
 130816 W