Absence of problems is definitely a major factor but I like to think of 'maintainability' as being the main marker of quality. Maintainable code has fewer problems because it makes problems easier to solve.