Online casinos use a random number generator which ensures every hand you play is generating random cards so there is no way you could count cards or predict the next set of cards you will get. Live blackjack on the other uses a live dealer so each hand is not randomized however the dealer will usually reshuffle the decks around half-way through which makes it harder to count cards. Any wild betting patterns will also be spotted by online casino security.