For me the first call returns the correct licensedDeviceCounts.
The second call seems to be meant for organizations that are using per-device licensing and returns this message:
{
"errors": [
"Organization with ID XXXXXXXX does not support per-device licensing"
]
}
Did you switch your organization to per-device licensing?