Update NodeCounting.cpp

added unistd.h since some gcc version complain about getpid