Modified CMakeLists.txt
Separated NodeCounter struct
Added main source file
Added sub CMakeLists.txt file
Removed old main file