Added in the counter and connected the Main page to the counter activity successfully