Added assertion for count after push.