adding method get_rep in u.lua --> returns repetitions of a given integer in a table