Electronic monitoring and counseling to improve medication adherence