Simple has lines count assertions for multiline strings

Sample

    String multilineString = "first line\n"
        + "second line\n"
        + "third line\n";

    assertThat(multilineString).hasLinesCount(2);