pyspark.sql.functions.count

pyspark.sql.functions.count(col: ColumnOrName) → pyspark.sql.column.Column

Aggregate function: returns the number of items in a group.