code: private static int numNewLines(final String toExamine) {
          final char[] arr = toExamine.toCharArray();
          int result = 0;
          for (char ch : arr) {
              if (AbstractTabularComponent.NEWLINE.equals(new String(new char[]{ch}))) {
                  result++;
              }
          }
          return result;
      }
docs: Returns how many new lines are in the string.
  
  @param toExamine the string to look upon.
  @return the number of occurences of {@link org.perfidix.ouput.asciitable.AbstractTabularComponent#NEWLINE} in the string.