your pseudocode is logically correct (if you intended the "count+1" to be outside of the IF statement) but you have some syntax errors.
Code:
BEGIN
count = 0
present = 0
GET advent
WHILE advent has not ended
IF advent[count] = "Present" THEN
present = present + 1
ENDIF
count = count + 1
ENDWHILE
END
as for the actual code you'll need to know the structure of the text file (i.e. how exactly the presents are stored) in order to successfully write the program.