# Counting

**URL:** <https://www.ruby-forum.com/t/counting/167877>\
**Category:** Rails\
**Created:** [May 13, 2009, 4:03pm UTC](https://www.ruby-forum.com/t/counting/167877 "2009-05-13T16:03:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![remco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9d8465/32.png) [@remco](https://www.ruby-forum.com/u/remco)\
**Post date:** [May 13, 2009, 4:03pm UTC](https://www.ruby-forum.com/t/counting/167877/1 "2009-05-13T16:03:14Z")

</div>

Hi,

I generate and download a cvs from my (HBX)stats-tool. The data is  
campaign-history value for tracking the hisitory of campaigns

Campaign-history Orders  
Direct 4  
Direct~Direct 6  
adwords 2  
adwords~direct~direct 4  
organic 12  
organic\_adwords\_direct 4  
ect

I download this by week (different campaign-history) and then i count  
the orders based on campaign-history. Because the csv if very long and  
also time consuming work, i want to realize the counting the  
campaign/orders in ruby.

Someone ideas?

grtz…remco
