rewrite leetcode count and say