push and count methods working