If I submit code again before the first one was evaluated, will it be counted as 2 submissions or 1
It will be counted as 1.
We count the number of evaluations. So if you submit code twice before it is evaluated, we will consider the latest one and evaluate it. Your count then becomes 1.