To get the number of items within a dictionary, use the count property which is read-only:
var myTable = [ "Apple": "iOS", "Google" : "Android", "Microsoft" : "Windows Phone" ] print(myTable.count) //3