Blinking LEDs for a set number of times followed by another action

What's the problem you're facing in bringing them together? What have you tried, what is going wrong, what don't you understand.

Can you give us an example of how you attempted to bring them together?