<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def max_pv_count(self):
 """ Returns the maximum allowed physical volume count. """

        self.open()
        count = lvm_vg_get_max_pv(self.handle)
        self.close()
        return count