fsdb: count with filters and indexes