It's best to leave voluntarily if you suspect that the casino staff is onto you. While counting cards is legal, the casino has the right to refuse service.