Actually, I presume this is because the array is counted from zero upwards, so the first element is zero. I guess when outputting the actual figures to the screen I just need to plus 1 onto the amount.