adding counting object