Is there a plywood base underneath your countertop? If so you can screw into that using short 1/2" screws. If not you'll have to secure the dishwasher to the cabinets on either side of your dishwasher, many dishwashers come with a bracket for this purpose.
Hi Deb! Here are some helpful ideas for you on your project! Good luck to you!