title: Counting occurance of a specific number in an integer in C
body: <p>I'm having some troubles... I'm trying to input a number, followed by an integer of multiple numbers. I am trying to count how many times the first number occurs in the integer.
  Now, I made this really easy code to show you what I actually am trying to do. The thing is, this code only compares two integers and tells me if they are the same or not. Mind you, I am very unexperienced in C programming, hence this question...</p>
  
  <pre><code>int main(){
  
      int numberOne;
      int numberTwo;
      int count = 0;
  
      scanf("%d", &amp;numberOne);
      scanf("%d", &amp;numberTwo);
  
      if(numberOne == numberTwo){
          count++;
      }
  
      printf("Amount of equals found: %d", count);
  
  return 0;
  }
  </code></pre>
  
  <p>Now, if I'd have the following input: '1 1021023234', the output would be: 'Amount of equals found:0'
  The output should be (in this case) 'The output would be Amount of equals found:2'</p>
  
  <p>I hope you guys can give me some tips.</p>