Card counting is a technique where players keep track of the cards that have been dealt to calculate the probability of certain cards remaining in the deck. While card counting is not illegal, many casinos prohibit its use and can refuse service to players suspected of card counting. Understanding the laws and regulations regarding card counting before using this technique is essential.