faster row-wise NA counting for matrices