Card counting is a strategy used in blackjack to gain an edge over the casino. It involves keeping track of the ratio of high cards to low cards that remain in the deck. By doing so, players can adjust their bets and playing decisions accordingly to increase their chances of winning.