Not good in the bedroom

After 4 years of marriage and my husband saying how good I am in bed and how lucky he is to have me I find out the truth. Apparently the last 4 years he has been lying because today he said “maybe I’d have sex with you everyday if you put more effort in.” you have no idea how these words stung. I asked what exactly he would like to see me do more and he said, “anything.” Apparently I had no idea that I did nothing. All this time I thought I was being sexy, trying to turn him on and often I’d get the words “I’m too tired”. But really I guess I’m just not trying hard enough. He made a comment a few weeks ago about being disappointed in the bedroom. He said it as a joke now I know it wasn’t on. Not sure what to do. He won’t even talk to me now. I just feel really hurt.