S&P Global Interview Question

Given a set of string, write a code that counts the set bits of the string.