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

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

Change-Id: I48d43ac87b224891302beda9b3702420f2b279d5