R scripts for word counts.