add libmodprobe api to query the number of modules loaded am: 8bafa9e28e am: bea59a77f7

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/11711956

Change-Id: Ibec7c3d5cdbb2793898a5efc212766c79cc0ff90