Fixed push, getCount functions