[SPARK-26745][SQL] Revert count optimization in JSON datasource by SPARK-24959 #23667
What changes were proposed in this pull request?
This PR reverts JSON count optimization part of #21909.
We cannot distinguish the cases below without parsing:
# empty string
See also #23665 (comment).
How was this patch tested?