Parsing quantities as integer