Please verify that you have followed the previous steps of microflow creation and that your microflow receives a parameter of TeamMember. Then a list of UserRole is retrieved. Then a count activity is used to count list which gives the variable “NumberOfUserRoles “. Attached image of microflow in 2.2.1 is available for reference.
Unknown variable normally occurs when variable is not in scope. This could be if variable is never declared or the microflow path shown by arrows does not follow correctly. The variable is available along the lines/arrows i.e., flow of the microflow logic