def lineCount(poemString):
    """ This function returns number of lines from the poem string. """
    lines = poemString.splitlines()
    if "" in lines:
        lines.remove("")
    return len(lines)