Add frequencia function

The frequency function calculates how many times an item appears in ROL.