Counter using proximity sensor - android app.