count0 += P0.0;
count1 += P0.1;
count2 += P0.2;
<i>etc</i>