mmc: add function to get the number of available mmc interfaces