It is not illegal to count cards in your preferred casino. However, it is not a welcome action in most land-based casinos and would be frowned upon by many live dealers. Moreover, it is almost impossible to keep track of the many cards when playing multi-hand Blackjack or online Blackjack.