Muon counting using silicon photomultipliers in the AMIGA detector of the Pierre Auger observatory