The number of immune cells in a specified sample. An immune cell is any cell involved in the immune system, a complex set of interconnected and interdependent cellular and molecular components having the primary functions of distinguishing self from not self and of defense against foreign organisms or substances. A cell is a membrane-enclosed protoplasmic mass constituting the smallest structural unit of an organism that is capable of independent functioning.