def lines_and_words(filepath):
    """counts all lines and words in a file, returns the values as a tuple"""
    words = 0
    lines = 0
    with open(filepath) as open_file:
        for line in open_file:
            lines += 1
            for word in line.split():
                words += 1
    
    return lines, words