CD4 and infection: CD4 has been used as a marker of immunocompetence in HIV infected patients, with higher CD4 counts indicating better immune response in these patients to opportunistic infections and other pathogenic infections.