If you’re on Mac, Live Type has a font called Flip Count that does exactly what you’re looking for. If not this isn’t too hard in AE. Create 10 Pre-comps, one of each number (0-9) on the card background.
Duplicate these 10 then use a mask or matte, so that you have a separate comp for the top half and bottom half of each number. Then use card wipe ( columns-1,rows-1, flip direction reversed) to flip from the top half of one number to the bottom half of the next number. Once you have a comp that counts up from 0 to 9 you have the building block fro the rest of your animation.