title: Select from List<string>
body: <p><strong>The problem has been solved, the code follows after the explanation of what it is trying to achieve.</strong></p>
  
  <p><strong>The code should be able to retrieve the number of times the number repeats itself</strong></p>
  
  <p><em>Firstly, the Code is attempting to get a number from the user:
  E.g: "221132"</em></p>
  
  <p>Afterwards, the user inputs a number and the program finds how many times that number is contained in his first input.</p>
  
  <p>E.g: "2"  should return the number 3, since that is the number of times the number was used in the first input.</p>
  
  <p>Note: I want to insert those into a <code>List&lt;T&gt;</code> and to count from there but:</p>
  
  <ul>
  <li><p><strong>I cannot to use the List(T).Count property.</strong></p></li>
  <li><p><strong>I Must use .FindAll to do it using LINQ</strong></p></li>
  </ul>
  
  
  
  <pre><code>static void Main(string[] args)
      {
          Console.WriteLine("Please enter a number");
          string InputNo = Console.ReadLine();
  
          List&lt;char&gt; result = InputNo.ToList();
          var strResult = result.Select(p =&gt; p.ToString()).ToList();
  
          Console.WriteLine("Type the number you want to find and how many times it is repeated");
          string findOccurence = Console.ReadLine();
  
          var found = strResult.FindAll(p =&gt; p == findOccurence);
  
          int counterOfRepeats = 0;
  
          var intFound = found.ConvertAll(p =&gt; Convert.ToInt32(p));
  
          for (int i = 0; i &lt; InputNo.Length; i++)
          {
              try
              {
  
                  counterOfRepeats++;
              }
              catch (Exception)
              {
  
                  throw;
              }
          }
  
  
          Console.WriteLine(counterOfRepeats);
          Console.ReadLine();
      }
  </code></pre>
  
  <p>Note: This code counts the number of times the string repeats itself <strong>without using .Count</strong></p>