Hyperledger Fabric 2.4 - NodeJS SDK - Number of Blocks in the Ledger

Job ID: 33488246

Budget: $10 – $30 AUD

I have Hyperledger Fabric 2.4 installation and want to get a number of blocks using Node.JS code.
Note - I can provide the Node.JS code that can access smart contracts. It has "contract" object to communicate with blockchain and smart contracts.