No, it's absolutely not unlawful. You cannot be arrested for Card Counting your way through your blackjack game. However, remember it is a disadvantage for the casinos and thus not favourably looked upon. Individual Casinos have measures in place to tackle situations where they suspect that you are card counting. You can face gaming restrictions or maybe just be asked to leave even!