Create countWays.cpp