I have the following code that counts the number of divs inside a page:

```
jQuery(function($) {

$(document).ready(function() {
                alert( $(".contentMachine").length );
            });

});

```

Now, I want the result of that to appear inside an html div I made:

```
<span class="subtitleMain" id="totalMachines">0</span>

```

How can I put the numbers inside that instead of having the alert box everytime the page loads?

Sorry! I literally just started learning javascript yesterday.