Implement setBufferCount, needed for practical buffer handling

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>
Merge pull request #29 from stskeeps/setbuffercount

Implement setBufferCount, needed for practical buffer handling