AWS KMS Key single & multi region KMS using terraform

creating a single module that creates a single region and multiple region KMS key using multi region condition but getting errors on count condition using terraform. Can anyone pls help?