Managed to run and understand the char-counter function.