以下代码段模拟了一个简单的计数器。以下哪个选项是这段代码的正确输出? ( ) 。
int count = 0;
for(int i = 0; i < 5; i++) {
count += i;
}
cout << count;