Diploid cells always have an even number of chromosomes because the chromosomes are found in pairs (2n).
Haploid cells only contain half the number of chromosomes (n).
So you just divide 8 by 2, which equals 4.
So, that is why there are 4 chromosomes. :)