It depends on your kid. It works great on my 2yr old but when my DD (now 4) was little she would just scream "NO counting!" over and over...time outs didn't work for her either, she loved the attention. The only thing that did work was time...waiting until she turned four
