Write a method that counts how many digits of a given number are a 7. For example, countSevens(1770) should return 2.