Create invcnt.cpp