Stub out get_networks_count properly for pnet unit tests

Bug 1174457

Change-Id: I30a5c549d5d236124a7798a757601e970067b284