I'm using a theme which has its own homepage which is created using the theme options (i.e. so can't add content under Pages) so I'm trying to add the latest posts on the page, I have copied the code from the blog themed page which is working great but its displaying all of the posts and I only wanted to display a pre-defined amount, probably 3 but I want to test it out.
I'm assuming the function I've attached below is retrieving every post I've made but I don't know much about PHP so I don't know how to only retrieve x amount of posts.
<?php if ( have_posts() ) : $count = 0; ?>
<?php while ( have_posts() ) : the_post(); $count++; global $post; ?>
