Calculate member count and alloc members once without repeating append().