A Spark/Scala custom function to count nulls, nans and blank values in all the columns of a given table or dataframe.