Add plugin count ip using mongo aggregation framework