title: Angular subscribe problems
body: <p>I need to Final Count to always be 1, this is storing the fail request count. I am also unsure as why the Final Count is printed before the Initial Count. I am not understanding the subscribe properly maybe. Hopefully this makes sense. </p>
  
  <pre><code> public failed: number = 0;
  
      buttonClickMethod(): void {
          // request code
  
          Observable.onErrorResumeNext(myrequests).first().subscribe(
              () =&gt; {
                  // On next code
              },
              () =&gt; {
                  this.failed++;
                  console.log('Initial count' + this.failed)
              },
              () =&gt; {
                  //On completed code
              }
          });
      console.log('Final count' + this.failed)
      this.failed = 0;
  
      }
  </code></pre>