title: Detect bootstrap carosual image number
body: <p>Detect bootstrap carosual image number, i am not able to find any solution, please help me to get image  slide number</p>
  
  <pre><code>&lt;div id="Carousel" class="carousel slide carousel-fade col-lg-8 col-offset-2"&gt;
              &lt;ol class="carousel-indicators"&gt;
                  &lt;li data-target="Carousel" data-slide-to="0" class="active"&gt;&lt;/li&gt;
                  &lt;li data-target="Carousel" data-slide-to="1"&gt;&lt;/li&gt;
              &lt;/ol&gt;
  
              &lt;div class="carousel-inner"&gt;
                  &lt;div class="item active"&gt;
                      &lt;img src="//placehold.it/1300x500" class="img-responsive"&gt;
                  &lt;/div&gt;
                 &lt;div class="item"&gt;
                   &lt;img src="//placehold.it/1300x500/55EE55" class="img-responsive"&gt;
                  &lt;/div&gt;
                          &lt;/div&gt;
  
      &lt;/div&gt;
  </code></pre>