Added getSize method in utils