countNAs function

counts NAs in each row of data