Hello @Brian Toan,
welcome to this moderated Azure community forum.
The IoT Hub does not expose the number of messages per device.
There are some metrics in the backend available as seen in the 'Diagnose and solve problems page, Issues with device-to-cloud messages' but these are not queryable:
If you want to count individual messages per device, you need to write custom logic, listening to routed messages using the routing mechanism.
Notice the IoT Hub is not counting individual messages but 'chunks'. Each message is divided into 4Kb blocks (S1 and higher).
So, a message of 6Kb is counted as two chunks thus 2 'IoT Hub messages'.
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.