The result of the expression 'count++' is the value of count before incrementing it (0). So a repeated 'count = count++' is basically the same as saying 'count = 0'.
'count = ++count' would give the expected result, although there is no point in assigning count's value to itself.
no its not. True, you assigning it 0 but then you increment it by 1.