Dimensions: evaluate the general width of your cabinets and the gap within the countertop to the bottom with the cabinet. On top of that, determine the depth in the recessed place under the cabinets.
Hardwiring is https://amaanrutz838264.bloguetechno.com/not-known-details-about-undercab-lighting-64116582