Update wrapper.rb

Return favorites as integer