Answer to Question 13B-2

int numGood(const int a, const int b)
{
  int count = 0;
  for(int k = a; k <= b; k++)
  {
    if(isGood(k))
    {
      count++;
    }
  }
  return count;
}