Here's a breakdown of the scenes:
* Act 1, Scene 1: The ghost first appears to the guards on the castle ramparts, who describe it to Horatio.
* Act 1, Scene 4: The ghost appears to Hamlet for the first time, revealing the story of his murder and demanding revenge.
* Act 3, Scene 4: The ghost reappears to Hamlet to warn him against Ophelia and to reaffirm his demand for revenge.