[SPARK-4452] fix elements read count for ExtrenalSorter

the elementsRead variable should be reset to 0 after each spilling
Add parentheses to this and call it with `addElementsRead()` since it has side effects.