private static void count() { BSONObject where = new BSONObject(); where.put("score", 100); Bmob.count("Your TableName", where.toString()); }