The sum of the digits of a two-digit counting number was 13. When the digits were reversed, the new number was 9 less than the original number. What was the original number?