public function countSaleElements($con = null)
    {
        return ProductSaleElementsQuery::create()->filterByProductId($this->id)->count($con);
    }
public function countSaleElements($con = null)
    {
        return ProductSaleElementsQuery::create()->filterByProductId($this->id)->count($con);
    }
public function countSaleElements ( $ con = null ) { return ProductSaleElementsQuery :: create ( ) -> filterByProductId ( $ this -> id ) -> count ( $ con ) ; }
Return PSE count fir this product.

@param ConnectionInterface $con an optional connection object
@return int
Return PSE count fir this product .