title: The fastest way to get count of processed dataframe records in Spark
body: <p>I'm currently developing a Spark Application that uses dataframes to compute and aggregates specific columns from a hive table. </p>
  
  <p>Aside from using <code>count()</code> function in <code>dataframes/rdd</code>. Is there a more optimal approach to get the number of records processed or number of count of records of a dataframe ?</p>
  
  <p>I just need to know if there's something needed to override a specific function or so.</p>
  
  <p>Any replies would be appreciated. I'm currently using Apache spark 1.6.</p>
  
  <p>Thank you.</p>