The solution is to change use structs::Counter; to use ::structs::Counter; in events.sw.
use structs::Counter;
use ::structs::Counter;