Isn't this one of those cases where it up to the designer ( architect/engineer ) to be sure that all codes are met ?

Let him/her re-design the counter and cabinet lay-out.

Glenn