Card counting is a mathematical strategy that can be used by players to bet bigger sums at less risk, by keeping a running tally of the distribution and location of certain cards over a number of games. It is not illegal, though the use of devices, or of signs and signals between players, to compile or communicate the information, is. There is no suggestion that Affleck had devices or accomplices.