Q:

Awk program creating very large negative number when trying to add up values from csv file

Here's my program with the unnecessary to the issue things taken out:
BEGIN{
   count = 0
   total = 0
   FS = ","
 } 
{
for(i=1; i<10; i++)
    count += $i;
total += count
count = 0
}
END{ print(total) }

The count when it prints out comes out as the very large negative number 
-2519999999999999782145076764868608
when I'm expecting a positive number.  
How would I go about fixing this?  I don't think it's a concatenation issue because there are more values in the csv than in the printed out number.   

A:

Okay I got it
Instead of += the total, 
I'm doing 
for(i=0; i<count; i++)
     total ++

it may not be the prettiest but it gets the right answer! 