Warranty of habitability: How many mice are too many?

When does a rodent problem cause a rental property to become uninhabitable? Can a landlord continue to collect rent when a property becomes uninhabitable?