count solution