Hate Your Family? Hate Your Life? Count the Cost?

What is the meaning of Luke 14? Why does Jesus say to hate your family and your own life? And what does it mean to “count the cost”? I have been under so much legalism and have been miserable. Now, I’m just wondering how to get free from all the analysis, especially about Hell.