integreate count into bson.exe