The CDC recommends that eligible adults should get the pneumonia vaccine in 3 doses. Immunocompromised adults should get 2 doses with a gap of 5 years.