You can, legally, track cards in your mind fine but you cannot film with a camera and analyze results on the computer elsewhere. Counting cards in blackjack is completely legal.
It's card counting in blackjack illegal? The answer is not. Let’s start with what is important about counting.