minor changes in counting (submit,solved)