Make sure that count is available before trying to use it