How to set the number of posts displaying on homepage?

To set the number of posts appearing in homepage, navigate to WordPress Dashboard > Settings > Reading > choose the number of posts to the “ Blog pages show at most ” option > Save Changes

This will set the number of posts that appear on your homepage / post feed.