I discuss how localization techniques for three and four-dimensional supersymmetric gauge theories can lead to a microscopic entropy counting for AdS black holes.