sum counts across multiple inputs