Best solutions for Toggle and Count