title: How to calculate the number of rows of a dataframe efficiently?
body: <p>I have a very large pyspark dataframe and I would calculate the number of row, but <code>count()</code> method is too slow. Is there any other faster method?</p>