The results suggested that an increase in T cell counts and CD8 T cell counts in HCC patients could improve the survival rate and prolong the survival time, especially in patients who underwent resection (HR value < 0.35, P < 0.001). Here, CD8A is linked to hepatocellular carcinoma.