Casinos prevent card counting by several measures like shuffling techniques, CSMs and security measures to keep a watch on unusual betting patterns and variations in them.