@Override
  public int countChars(Note note) {
    String titleAndContent = note.getTitle() + "\n" + note.getContent();
    return (int) Stream.of(sanitizeTextForWordsAndCharsCount(note, titleAndContent).split(""))
        .map(String::trim)
        .filter(s -> !s.isEmpty())
        .count();
  }
@Test
  public void countChars() {
    Note note = getNote(1L, "one two", "three four five\nAnother line");
    assertEquals(30, new DefaultWordCounter().countChars(note));
  }