def count_lines(string: str) -> int:
    """
    Counts the number of lines in the given string
    :param string: String to count
    :return: int

    Example:
        >>> count_lines("Hello World")
        >>> 1

    """
    return len(string.splitlines())