func (S *State) Add(Node string, Name string, Count int) bool {
	if !S.IsSet {
		return false
	}
	S.lck.Lock()
	defer S.lck.Unlock()
	var I Inst
	var exist bool
	if I, exist = S.Agents[Node]; exist != true {
		I = make(Inst)
		I[Name] = 0
	}
	I[Name] = I[Name] + Count
	S.Agents[Node] = I
	return true
}
Add adds an Instance to a particular node, if the entry is unavailable it tries to create it first
package agentstate
import (
	"sync"
)
type Inst map[string]int
type State struct {
	lck    sync.Mutex
	Agents map[string]Inst
	Count  int
	IsSet  bool
}
func NewState() *State {
	var AS State
	AS.Agents = make(map[string]Inst)
	AS.Count = 0
	AS.IsSet = true
	return &AS
}