Quick Question

Hi all Im a total noob here and was wondering if I could ask if something is possible before I invest more thought into it.

So I want to have 3 leds, one green one yellow and one red and I want them to light up depending on how many times you turn your phone on in a certain time period.

I honestly know next to nothing and am just starting out if someone could point me in the right direction or tell me if this is even possible that would be much appreciated.