first draft of counting program, just reading in file now