title: Length property does not exist with observables
body: <p>I want to make a total for my users and display it but i get this issue</p>
  
  <blockquote>
    <p>[ts] Proprety 'length' does not exist on type 'Observable User'. [2339]</p>
  </blockquote>
  
  <p>this is my ts file </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>  users: Observable&lt;User[]&gt;;
    totalEmplyees:number;
    constructor(private UserService: UsersService) { }
  
    ngOnInit() {
      this.reloadData();
    }
    reloadData() {
      this.users = this.UserService.getUsers();
      console.log(this.users)
      this.getTotalEmplyees();
    }
    getTotalEmplyees(){
      let total = 0 ;
     
      for (let index = 0; index &lt; this.users.length; index++) {
        total +=  1 ;
      
      }
      this.totalEmplyees = total;
      
      console.log(this.totalEmplyees);
    
    }</code></pre>
  </div>
  </div>
  </p>
  
  <p>i hope that somone suggest for me a solution for this issue.</p>