Add a check on the count given to draw_arrays