Adding RealmQuery.count

@bmunkholm @rlwaldrop