How to set conditions .each : I have here such a section of code

    <% @portfolio.shuffle.each do |portfo| %>

How can I specify in the condition that the code in this block should be executed 6 times?