I don't have the environment to test it, but you might want to try limit
keyword, see documentation here. I assume it will show all if limit is not reached.
<ul>
{% for post in site.posts limit:10 %}
<li><a href="{{ BASE_PATH }}{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>