pyspark.sql.functions.
count
Aggregate function: returns the number of items in a group.
New in version 1.3.