title: count rows in Dataframe Pyspark
body: <p>I want to make some checks on my DF, in order to try it I'm using the following code:</p>
  <pre><code>start = '2020-12-10'
  end = datetime.date.today()
  country='gb'
  
  
  df_ua = (spark.table(f'nn_squad7_{country}.fact_table')
        .filter(f.col('date_key').between(start,end))
        #.filter(f.col('is_client')==1)
        .filter(f.col('source')=='tickets')
        .filter(f.col('subtype')=='trx')
        .filter(f.col('is_trx_ok') == 1) 
        .select('ticket_id').distinct() 
        )
  
  output = df_ua.count('ticket_id').distinct()
  
  </code></pre>
  <p>I'm getting the following error:</p>
  <blockquote>
  <p>TypeError: count() takes 1 positional argument but 2 were given</p>
  </blockquote>
  <p>I don't understand why I'm getting it, any clue?</p>