The test set for the competition has 12500 images; no real “reason” for that, as far as I know, except it being how the competition was set up~
The labelled data has 12500 images each for dogs and cats, and you can split it into training-validation however you want, e.g. following standard 80%-20% rule.