Fewer hospitals operating at a loss