Added graphing functionality to counting program.