modified code so that resistant and susceptible counts are able to be
parsed using pgfplots.