I want to loop my clicks from 1 to 3 and then it should repeat. I try something like this

```
$(".switch").click(function(){
  var $btn = $(".click_count");
  var count = ($btn.data(".click_count") || 0) + 1;
  $btn.data(".click_count", count);
  if ( count == 1 )
    $btn.text("2");
  else if ( count == 2 )
    $btn.text("3");
  else {
    $btn.text("1");
  }
  return false;
});

```

**My problem:** How can I repeat this function, so that click no. 4 will show no. 2 aso. again?