Why i am getting 5 attacks instead of 12?

You can get less attacks if you register during league day. That’s ok, it works like that in CoC too. Next day you will have 12 attacks.