A simple function to count the number of its NULL arguments. Written by Alvaro Herrera , sponsored by Enova Fincancial (www.enovafinancial.com). See http://wiki.postgresql.org/wiki/Count_nulls for further details.