C2W1_assignment split function can not get the exact same number

the output from my split function :
There are 11249 images of cats for training
There are 11250 images of dogs for training
There are 1250 images of cats for validation
There are 1249 images of dogs for validation

and expected output:

There are 11249 images of cats for training
There are 11249 images of dogs for training
There are 1250 images of cats for validation
There are 1250 images of dogs for validation

Any suggestions?
Thanks

got the same results as expected.
check BEFORE split solved the problem.