This should work:
let temp = build_counts () let () = List.iter ~f:(printf "%s %i \n") temp
See Syntax Error on "in" - #5 by yawaramin