added consideration for order type in orderCount()