How to get current cart total items & total quantity in magento2

How to get current cart total items & total quantity in magento2:
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$cartObj = $objectManager->get(‘\Magento\Checkout\Model\Cart’);
$totalItems = $cartObj->getQuote()->getItemsCount(); //Current cart Item counts
$totalQuantity = $cartObj->getQuote()->getItemsQty(); //Current Cart Items qty’s

 

CORNER OF BLOG:

“SAVE Agriculture !!! No Food without SOIL.