Replaced type of count with size_type