The three stations start with zero visits. Use calloc for their counters, then update only the third element to 4. The first two can keep their zero starting values. Check the returned pointer before accessing any of them.
int counters with calloc, return 1 if it fails, set element 2 to 4, print Stations: 0, 0, 4 followed by a newline from the array elements, and free the storage before returning 0.calloc(stations, sizeof *visits) begins with zeroed int elements. Check and free the result.