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

Fixes #13
Merge pull request #16 from robn/draw-elements

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