Add api_worker num to attr

Added attributes for number of API workers configured in nova.conf based on total number of CPU cores but capped at 8.