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