The file oc-content\themes\bender\functions.php contains a function named bender_draw_categories_list().
I recommend you look at line 187, which is the beginning of a while() loop that I think iterates through the subcategories of the current category. You might be able to add a variable to the code (e.g. $num_subcats_displayed_so_far), that counts the number of subcategories displayed so far, and some logic (i.e. if $num_subcats... == 5 ) that causes PHP to break out of the while loop after displaying the 5th subcategory for a given category.
Here's what I mean (I added the lines with the comments after them).
<ul>
<?php $max_subcats_to_show = 5; // define some maximum number of subcategories to show per category ?>
<?php $num_subcats_shown = 0; // restart counter for the new category ?>
<?php while ( osc_has_subcategories() ) { ?>
<li>
<?php if( osc_category_total_items() > 0 ) { ?><a class="category <?php echo osc_category_slug() ; ?>" href="<?php echo osc_search_category_url() ; ?>"><?php echo osc_category_name() ; ?></a> <span>(<?php echo osc_category_total_items() ; ?>)</span>
<?php } else { ?><span><?php echo osc_category_name() ; ?> (<?php echo osc_category_total_items() ; ?>)</span></li>
<?php } ?>
<?php $num_subcats_shown++; // increment counter because just displayed another subcategory ?>
<?php if( $num_subcats_shown >= $max_subcats_to_show ) break; // break out of while loop if displayed enough subcategories ?>
<?php } ?>
</ul>
Does it do what you want?
I would like for the Blender theme to include this in the admin panel--in other words, to have an option where we can enter the max number of subcategories we want displayed per parent category. Then they can use that option (if defined) inside this function.