Counts do exactly what they sound like- they count up or down. You can set ranges for counts and how much each unit will count for. Counts will count up or down to any variable you set. In the case of a servo, a good variable to use would be "position" or "degrees." In this example, "pos" was used as shorthand for position. Since servos typically range from 0° to 180°, you can define your count to be between 0 and 180. Nested in the count should be the command to rotate the servo- in this case you can rotate the servo to the same variable "pos" as the position in degrees since we already defined the 0° to 180° range above. Typically, you will also want to add a wait command to allow the servo a buffer period in instruction- this will avoid glitches where the servo tries to implement multiple commands at once.
From there, just copy and past the count command with everything nested inside and swap 0° to 180° to 180° to 0°. Now you will have a servo that will sweep from 0° to 180° and back to 0° then repeat.