Fix for SDR Repository Info command returning off-by-one SDR Count

NM Discovery SDR is not added to record count during the time of
record count manipulation in the command.

Tested:
Issued 'ipmitool sdr dump /tmp/xxxx.bin'
Performed a hex dump on the binary data and reviewed the SDR with
record type 0xC0.

Issued 'ipmitool sdr info'
Observed that the SDR record count returns correctly as per the
number of SDR records including NM Discovery SDR count in it.

Change-Id: Ic91985ff8f6051db5d799c250b6cfb079cb33fba
Signed-off-by: sureshvijayv1 <suresh.vijayakumar@intel.com>
diff --git a/src/sensorcommands.cpp b/src/sensorcommands.cpp
index b27a346..d605ca5 100644
--- a/src/sensorcommands.cpp
+++ b/src/sensorcommands.cpp
@@ -1641,8 +1641,9 @@
         return ipmi::response(ret);
     }
 
-    uint16_t recordCount =
-        getNumberOfSensors() + fruCount + ipmi::storage::type12Count;
+    uint16_t recordCount = getNumberOfSensors() + fruCount +
+                           ipmi::storage::type12Count +
+                           ipmi::storage::nmDiscoverySDRCount;
 
     uint8_t operationSupport = static_cast<uint8_t>(
         SdrRepositoryInfoOps::overflow); // write not supported