Here are a couple of before and after pictures of a properly flashed and sealed chimney. We installed a new cricket and counter flashing to divert water away from the chimney. Finally, we sealed it with special roofing paint to match.
Do you know the main components of your roof and what to look for? Here's a diagram that might help!