Many online casinos offer skill based gambling, and using skills is expected with these games. Most casinos frown on actions like card counting, and brick-and-mortar casinos will definitely ban you if they catch you engaging in this practice.