use #size instead of #count for better performance