I think this is the challenging part of the lesson.
This lesson has two parts:
We have a series of cards, e.g. 2, J, 9, 2, 7. Depending on each of these cards we increase, decrease or hold the current count. These calculations are all done in the switch statement.
After we did all the changes for the count, we decide if we return the count plus Hold or count plus Bet, depending on count from #1. This is only one value, depending of the accumulation of all previous steps from #1. This is done in the if statement.