add count without nulls func