Update countShapes.cpp