SPARK-2630 Input data size of CoalescedRDD counts only one partition

This is part of public API, could we fix the issue without change the API?

Also, it looks different than others. I'd prefer to keep the type unchanged.