CP-33617 Move some mpathcount.py code into functions
CP-33617 Move some mpathcount.py code into functions

Move some of the functionality of mpathcount.py into functions
to make it a little easier to write unit tests for it

Signed-off-by: Tim Smith <03da0989893228608f9d9f18ed1394aa48dc6440@citrix.com>

xapi-project/sm,xapi-project/sm,xapi-project/sm