[Metal Pattern 001] theory count function energy