The FileWriter is a constructor with two parameters. Of course the name of the file an a boolean. If the boolean is set to true you can append new entries to your file. Nevertheless the variable of the BufferedWriter must also append any new content to the file. Make sure to implement both!
Remember this snippet scan.nextLine(); to input spaces also which means writing line by line. The so called lineSeperator is nothing else but a paragraph.
It's no big thing anymore to declare an integer for counting each character of the file. Since each character is read out anyway, they only need to be added within the while loop. But you must place the snippet coun += spac.length(); on the first position of the block.
Die Nacht, sie senkt sich über's Land,
doch einer hält ihr tapfer Stand.
Er steht am Tresen, steht seinen Mann,
er tut und macht, tut was er kann,
gibt Rat und Tat zu später Stund'
hält sauber, mit ihm läuft alles rund.
Es ist der Trainer, Held des Gym.
Ist er nicht da, dann wird es schlimm.
Wenn er mal fehlt, Gott sei's geklagt,
wird Wichtiges sofort vertagt,
dann weiß die Leitung keinen Rat,
sie trudelt, versucht auch den Spagat.
Es will nicht glücken, das Unterfangen,
Es folgen Zittern und auch Bangen,
man sucht verzweifelt nach dem Retter.
Wo ist er? Zeig' er sich, zum Donnerwetter!
Und weil ich niemanden gern kränke,
die Trainerin ich auch bedenke.
Bedenkt auch Ihr in diesem Sinn,
dass ich frei von Satire selten bin.