Spark Count Function
In Spark, the Count work returns the quantity of components present in the dataset.
Example of Count function
In this model, we count the quantity of components exist in the dataset.
Make a RDD utilizing parallelized assortment.
scala> val data = sc.parallelize(List(1,2,3,4,5>
Presently, we can peruse the produced outcome by utilizing the accompanying order.
capacity to count number of components.
scala> val countfunc = data.count(>