About 25 percent of cases of pneumonia are caused by pneumococcal infections. Pneumonia is an infection of the lungs.