Word counter changed to work on Windows