You can annotate scripts by embedding comment lines. Comment lines begin with a pound (#) symbol, and the comment extends to the end of the line. The following code segment illustrates a full-line comment and an in-line comment:
# This section of script initializes the counter
$counter=0 #the counter starts at 0