An abnormality of the morphology or counts of the cells that make up the immune system. The phenotype is Abnormal cellular immune system morphology (HP_0010987, a Human Phenotype Ontology id).