You will not be penalized in any way for trying to count cards in online Blackjack. However, online casinos shuffle the decks after every hand, which means counting cards will be futile. In fact, you will probably be getting counterproductive results if you try to count a deck that’s being constantly re-shuffled.