Create countInversion.cpp