fixed minor errors (missed replacing stockCount.unopened with countValue )