Apply a thin bead of caulking along the area where the countertop has separated. Push the caulking into the crack with a toothpick or a straw. Spread the caulking all along the separated area.
Open the cabinet underneath the countertop where the separation has occurred. Drill out a series of 2-inch screws with washers near the top of the cabinet interior, into the framing of the cabinet if possible. Space the screws every 12 inches within the cabinet. Tighten the screws completely until the washer is pushing deeply into the interior frame of the cabinet.
Apply another bead of caulking at the top of the countertop against the wall where the crack used to be. Smooth out the caulking with a finger or some blunt tool, removing all excess caulking and leaving only a smooth, attractive seal of caulking.