The behavior of a collection of atoms that are strongly coupled to a r
esonant cavity is numerically studied. Atoms and mode are coupled to i
ndividual heat baths. The mode is coupled to a classical driving field
. The system exhibits interesting properties like optical bistability
and nonclassical photon counting statistics.