Card counting is generally legal in casinos, as it is considered a strategy rather than cheating. However, while players can use their mental skills to track cards, casinos reserve the right to refuse service to anyone they suspect of card counting. If a player is identified as counting cards, casinos may take various measures, such as altering the rules, limiting their playing time, or banning them from playing certain games.