title: Flutter: count the number of items created through ListView.builder and display them
body: <p>I'm still quite new to Flutter. I have a page that has items created through ListView.builder, and I need to display the number of items inside that page for the user to see. Here's what i want to achieve:</p>
  <p><a href="https://i.stack.imgur.com/fc8K4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fc8K4.png" alt="enter image description here" /></a></p>
  <p>The Listview uses data from a class that i've created.</p>
  <pre><code>class Product {
   int id;
   String title;
   String image;
   String description;
  
   Product({this.id, this.title, this.image, this.description});
  }
  
  List &lt;Product&gt; products= [
   Product(
    id: 1,
    title: 'Item 1',
    image: 'assets/images/item1.png',
    description: 'some text'
   ),
   Product(
    id: 2,
    title: 'Item 2',
    image: 'assets/images/item2.png',
    description: 'some text'
   ),
   Product(
    id: 3,
    title: 'Item 3',
    image: 'assets/images/item3.png',
    description: 'some text'
   ),
   Product(
    id: 4,
    title: 'Item 4',
    image: 'assets/images/item4.png',
    description: 'some text'
   ),
  ];
  </code></pre>
  <p>I want to mention the number of items that the listview has created and display them inside the column widget according to the image above.</p>
  <pre><code>class WishList extends StatefulWidget {
    @override
    _WishListState createState() =&gt; _WishListState();
  }
  
  class _WishListState extends State&lt;WishList&gt; {
  
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        backgroundColor: Colors.grey[200],
        body: Column(
          children: &lt;Widget&gt; [
            Container(
              child: Column(
                children: [
                  Text('My Wishlist',),
                  SizedBox(height: 20),
                  Text('You have (num_of_items) Items'), 
  </code></pre>
  <p>How do i do that? any help would be greatly appreciated.</p>