Why does my program skip the while loop?
class DigitRepeat
{
  public static void main(String args[])
  {
      int n=133,dig=3,digit,count=0;
      while(n!=0)
      {
         digit=n%10;
         if(dig==digit)
         {
            count=count++;
         }
         n=n/10;
      }
      if(count==0)
          System.out.println("digit not found");
      else
          System.out.println("digit occurs "+count+" times.");
  }
}
 
     
     
     
     
     
     
     
    