draw_elements: Separate count from the (optional) element list. Allows buffered drawing.