mongodb: make count an integer explicitely

This fixes bug #1124350

Change-Id: I389a3f228fd3e1718d242189d9579a3b56852ca1
Signed-off-by: Julien Danjou <julien@danjou.info>
Merge "mongodb: make count an integer explicitely"