Preheat oven to 200 °C. Put pastry on a lined baking tray. Fold edges of pastry inwards, about 2 cm. Cover pastry with cottage cheese. Sprinkle half the pecorino over. Combine courgettes, garlic and olive oil in a bowl. Season with salt and pepper. Arrange courgette slices on top of cottage cheese and sprinkle rest of pecorino over. Bake for 45 minutes until pastry is cooked through. Serve warm.