media: add custom number of numbers to calculate.

Signed-off-by: freshgiammi <rengucci.gianmarco@gmail.com>