Added console.log total

Added console.log total