I remember coming across card counting on a BBC documentary whist at college in the early 80’s

Here is how to count cards but you will need shuffle tracking too… Dark Star does a whole course on YouTube

https://www.youtube.com/watch?v=CzlGVz5AD_4