Swift: Get the Number of Keys In a Dictionary June 6, 2023 by Tarik There is a count property on dictionary, so myDict.count will work.