Construction of quasi-twisted codes and enumeration of defining polynomials