#!/usr/bin/env python3

# Simulate the behavior of the wc program

# Man wc

import sys


def word_count(f):
   # Count chars
   # Count lines
   # Count words
    pass


if __name__ == '__main__':
    if len(sys.argv) < 2:
        print('You must specify a file.')
        exit()

    try:
        fd = open(sys.argv[1])

    except FileNotFoundError:
        print('File not found')
    # Do the work in a file so it is more modular
    word_count(fd)
    fd.close()