#include <iostream>
#include <ppl.h>
int _tmain(int argc, _TCHAR* argv[])
{
Concurrency::combinable<int> count;
Concurrency::parallel_for( 0, 1001, [&]( int n ){
do{
if( (n % 10) == 0 ){
++count.local();
}
n /= 10;
}while( n > 0 );
});
int total = count.combine( std::plus<int>() );
std::cout << total << std::endl;
return total;
}