According to the man page of DrawElements
When glDrawElements is called, it uses count sequential elements from an enabled array
So it would be 36 for the total indices in your indexbuffer.
For the indices array you would have to choose the first version. The indices have to be >= 0 and for 3 consecutive indices a triangle will be drawn.