sql count non null values in each column