df.filter( (col("year") == 2009) & (col("Global_intensity") > 40) ).count() # Output: 10