$x = a.b[0]; SELECT count(*) FROM $x;