package body Logs with Refined_State => (Trace => Count) is
   Count : Natural := 0;
   procedure Note with Refined_Global => (In_Out => Count) is
   begin
      if Count < Natural'Last then
         Count := Count + 1;
      end if;
   end Note;
   procedure Work (X : in out Integer) with Refined_Global => (In_Out => Count) is
   begin
      X := X + 1;
      Note;
   end Work;
end Logs;
