Assign max count to a variable.
Assign max count to a variable.

eligible_masters was being used directly to access max count value. For
easier usage and code readability, assigned the required value to a
variable and use it everywhere.

Signed-off-by: Srijan Mishra <c2c41bdc8170583cc0b29d3ebd2deb0e30f77bb7@gmail.com>
Acked-by: 94202dcf220e8a88121317302a23c120bd7d8ad2@gmail.com

c3m3gyanesh/RouteFlow-OpenConfig,srijanmishra/RouteFlow,raphaelvrosa/RouteFlow,routeflow/RouteFlow,routeflow/RouteFlow,raphaelvrosa/RouteFlow,srijanmishra/RouteFlow,arazmj/RouteFlow,routeflow/RouteFlow,raphaelvrosa/RouteFlow,raphaelvrosa/RouteFlow,raphaelvrosa/RouteFlow,ralph-mikera/RouteFlow-1,c3m3gyanesh/RouteFlow-OpenConfig,ralph-mikera/RouteFlow-1,arazmj/RouteFlow,srijanmishra/RouteFlow,srijanmishra/RouteFlow,ralph-mikera/RouteFlow-1,routeflow/RouteFlow,raphaelvrosa/RouteFlow,ralph-mikera/RouteFlow-1,arazmj/RouteFlow,arazmj/RouteFlow,arazmj/RouteFlow,c3m3gyanesh/RouteFlow-OpenConfig,c3m3gyanesh/RouteFlow-OpenConfig,srijanmishra/RouteFlow,ralph-mikera/RouteFlow-1,c3m3gyanesh/RouteFlow-OpenConfig,arazmj/RouteFlow,ralph-mikera/RouteFlow-1,routeflow/RouteFlow,c3m3gyanesh/RouteFlow-OpenConfig