<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _hardware_count(self):
 """ Amount of hardware resources. :return: integer """

        return self._counts.get("hardware") + self._counts.get("serial") + self._counts.get("mbed")