No idea why this doesn't work

Have tried parallel.for() and this whole task<int> thing; neither one
returns the expected (approximately 50/50) results because neither one
appears to be correctly incrementing the counter value.