Added source file

Initial version of program, bug with counting