select first row first column pyspark

C
industry_count.first()[0]
Source

Also in C: