working on AmplitudeCounter processor