Any goal that is written on the scoreboard counts. Whether its an own goal, or a penalty, it counts.