There are more than 50 kinds of pneumonia. Bacteria cause bacterial pneumonias. Viruses cause viral pneumonias. Fungi and other organisms can cause other types of infectious pneumonia.