Why do we need count variable here? it looks unused.