I believe Amount is the transaction amount, it is usually by line item, so if you have a Sales order with 10 line items, and you use amount as the counter, it would return 10 for that one sales order. You may want to count Document Number instead or Internal ID