I think it should work like this:
Find this file:
themes/SuiteP/tpls/_headerModuleList.tpl
Create a copy of it in the custom folder (create any subdirectories as needed):
custom/themes/SuiteP/tpls/_headerModuleList.tpl
Now try editing these lines and seeing how it works:
https://github.com/salesagility/SuiteCRM/blob/master/themes/SuiteP/tpls/_headerModuleList.tpl#L112
https://github.com/salesagility/SuiteCRM/blob/master/themes/SuiteP/tpls/_headerModuleList.tpl#L219
https://github.com/salesagility/SuiteCRM/blob/master/themes/SuiteP/tpls/_headerModuleList.tpl#L366
Some of those are probably for mobile views, the others for desktop views. And it seems to count separately the recent records within the current module, and others.