Reduce number of products on sidebar shopping cart Magento

Go to system -> configuration and click on the option  “Shopping cart sidebar” (sidebar menu)  under the main   category  “SALES”  .  Fill the field Maximum Display Recently Added Item(s) with the number of products you want  and save the dat .