Implement setBufferCount, needed for practical buffer handling

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>