Added count
Added problem 224 base case