Use areduce instead of count and filter