added offline PV counter