add the solution of count and say and refactor code