code count and say, with unit test cases