Get how many entities match a selector and store it in a scoreboard

I know its execute store result .. but I dont know what command returns what I need

Continue to help post