use size rather than count from stdlib