minor typo - count set to zero twice.