List.Count Function in Power Query
The List.Count function returns the number of items in a list.
Syntax
List.Count(list as list) as number
Example: Find the number of values in the list.
Power Query M
let Source = {"India", "America", "Canada", "Japan", "Australia", "England"}, Return = List.Count(Source) in Return
The output will be 6.