recently viewed items stack: Add a configuration option for MAX_ITEMS in Recent.php
You would need to patch CiviCRM to change this from a hardcoded constant into a setting.

Create a pull-request for this change and the core team will review it and merge it into 4.7.

See http://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference