Option to count instead of sum in pivot mode