def count_lines(file_name):
    """
    Counts number of non-empty lines in the file `file_name`

    Args:
        file_name (str): Path to file

    Returns:
        int: Number of non-empty lines
        list(str): List of strings, one str for each line
    """
    with open(file_name) as f:
        lines = [line.rstrip() for line in f.readlines()]
    nonblanklines = [line for line in lines if line]
    return len(nonblanklines), nonblanklines